import bsView from "./BootstrapSealed/sub-routing.mjs";
import buView from "./BootstrapUse/sub-routing.mjs";
import bbView from "./BusyBox/sub-routing.mjs";
import coView from "./ConceptualOverview/sub-routing.mjs";
import uibView from "./NgUIBootstrap/sub-routing.mjs";
import { defineIndexRouteView } from "@/routers/common-index.mjs";
import { combRouter } from "@/routers/tools.mjs";
// should be dynamic import

/**
 * @type {DefineRoute[]}
 */
const dgIndexRoute = [
  combRouter(coView, {
    name: "dg.co",
    url: "/co",
  }),
  combRouter(buView, {
    name: "dg.bu",
    url: "/bu",
  }),
  combRouter(uibView, {
    name: "dg.uib",
    url: "/uib",
  }),
  combRouter(bbView, {
    name: "dg.bb",
    url: "/bb",
  }),
  combRouter(bsView, {
    name: "dg.bs",
    url: "/bs",
  }),
];

/**
 * @type {DefineRoute[]}
 */
export const modRoutingDG = [
  ...dgIndexRoute,
  ...(await import(
    /* webpackIgnore: false */ "./ConceptualOverview/sub-routing.mjs"
  ).then((mod) => mod.subRoutingCO)),
  ...(await import(
    /* webpackIgnore: false */ "./BootstrapUse/sub-routing.mjs"
  ).then((mod) => mod.subRoutingBU)),
  ...(await import(
    /* webpackIgnore: false */ "./NgUIBootstrap/sub-routing.mjs"
  ).then((mod) => mod.subRoutingUIB)),
  ...(await import(/* webpackIgnore: false */ "./BusyBox/sub-routing.mjs").then(
    (mod) => mod.subRoutingBB,
  )),
  ...(await import(
    /* webpackIgnore: false */ "./BootstrapSealed/sub-routing.mjs"
  ).then((mod) => mod.subRoutingBS)),
];

const dgView = defineIndexRouteView(dgIndexRoute);

export default dgView;

if (import.meta.webpackHot) {
  import.meta.webpackHot.accept();
}
